package com.vpa.graphics;

import javax.microedition.khronos.opengles.GL10;

public abstract class Spot 
{
	public int x = 0;
	public int y = 0;
	private int width = 0;
	private int height  = 0;
	public int owidth;
	public int oheight;
	public float originalAspRat;
	public String title;
	public int type;
	public boolean loaded = false;
	public boolean readyToLoad = false;
	Texture[] drawables;
	public boolean overTrash = false;
	public boolean moving = false;
	public int text_size;
	GLText text;
	
	public void draw(GL10 gl, GLView v)
	{
		
	}
	
	public void move(int x, int y)
	{
		this.x = x;
		this.y = y;
		if(drawables != null)
		for(int i = 0; i < drawables.length; i++)
		{
			drawables[i].move(x, y, width, height);
		}
	}
	
	public void changeTextSize(int i)
	{
		
	}
	
	protected void setDims(int w, int h, boolean b)
	{
		height = h;
		width = w;
	}
	protected int getHeight()
	{
		return height;
	}
	protected int getWidth()
	{
		return width;
	}
    protected static void drawText(float r, float g, float b, float a, String s, float x, float y, GLText t)
    {
    	t.begin( r, g, b, a);         // Begin Text Rendering (Set Color WHITE)
        t.draw( s, x, y);          // Draw Test String
        t.end();
    }
}